3.9.93 \(\int \frac {1}{\sqrt {-1+x} \sqrt {1-x^2}} \, dx\) [893]

Optimal. Leaf size=31 \[ \sqrt {2} \tan ^{-1}\left (\frac {\sqrt {1-x^2}}{\sqrt {2} \sqrt {-1+x}}\right ) \]

[Out]

arctan(1/2*(-x^2+1)^(1/2)*2^(1/2)/(-1+x)^(1/2))*2^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {675, 209} \begin {gather*} \sqrt {2} \text {ArcTan}\left (\frac {\sqrt {1-x^2}}{\sqrt {2} \sqrt {x-1}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/(Sqrt[-1 + x]*Sqrt[1 - x^2]),x]

[Out]

Sqrt[2]*ArcTan[Sqrt[1 - x^2]/(Sqrt[2]*Sqrt[-1 + x])]

Rule 209

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*ArcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rule 675

Int[1/(Sqrt[(d_) + (e_.)*(x_)]*Sqrt[(a_) + (c_.)*(x_)^2]), x_Symbol] :> Dist[2*e, Subst[Int[1/(2*c*d + e^2*x^2
), x], x, Sqrt[a + c*x^2]/Sqrt[d + e*x]], x] /; FreeQ[{a, c, d, e}, x] && EqQ[c*d^2 + a*e^2, 0]

Rubi steps

\begin {align*} \int \frac {1}{\sqrt {-1+x} \sqrt {1-x^2}} \, dx &=2 \text {Subst}\left (\int \frac {1}{2+x^2} \, dx,x,\frac {\sqrt {1-x^2}}{\sqrt {-1+x}}\right )\\ &=\sqrt {2} \tan ^{-1}\left (\frac {\sqrt {1-x^2}}{\sqrt {2} \sqrt {-1+x}}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.05, size = 32, normalized size = 1.03 \begin {gather*} -\sqrt {2} \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {-1+x}}{\sqrt {1-x^2}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/(Sqrt[-1 + x]*Sqrt[1 - x^2]),x]

[Out]

-(Sqrt[2]*ArcTan[(Sqrt[2]*Sqrt[-1 + x])/Sqrt[1 - x^2]])

________________________________________________________________________________________

Maple [A]
time = 0.50, size = 39, normalized size = 1.26

method result size
default \(\frac {\sqrt {-x^{2}+1}\, \sqrt {2}\, \arctan \left (\frac {\sqrt {-1-x}\, \sqrt {2}}{2}\right )}{\sqrt {x -1}\, \sqrt {-1-x}}\) \(39\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x-1)^(1/2)/(-x^2+1)^(1/2),x,method=_RETURNVERBOSE)

[Out]

1/(x-1)^(1/2)*(-x^2+1)^(1/2)/(-1-x)^(1/2)*2^(1/2)*arctan(1/2*(-1-x)^(1/2)*2^(1/2))

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(-1+x)^(1/2)/(-x^2+1)^(1/2),x, algorithm="maxima")

[Out]

integrate(1/(sqrt(-x^2 + 1)*sqrt(x - 1)), x)

________________________________________________________________________________________

Fricas [A]
time = 1.86, size = 30, normalized size = 0.97 \begin {gather*} \sqrt {2} \arctan \left (\frac {\sqrt {2} \sqrt {-x^{2} + 1} \sqrt {x - 1}}{x^{2} - 1}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(-1+x)^(1/2)/(-x^2+1)^(1/2),x, algorithm="fricas")

[Out]

sqrt(2)*arctan(sqrt(2)*sqrt(-x^2 + 1)*sqrt(x - 1)/(x^2 - 1))

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {- \left (x - 1\right ) \left (x + 1\right )} \sqrt {x - 1}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(-1+x)**(1/2)/(-x**2+1)**(1/2),x)

[Out]

Integral(1/(sqrt(-(x - 1)*(x + 1))*sqrt(x - 1)), x)

________________________________________________________________________________________

Giac [C] Result contains complex when optimal does not.
time = 1.90, size = 36, normalized size = 1.16 \begin {gather*} \frac {1}{2} i \, {\left (\sqrt {2} \log \left (\sqrt {2} + \sqrt {x + 1}\right ) - \sqrt {2} \log \left (-\sqrt {2} + \sqrt {x + 1}\right )\right )} \mathrm {sgn}\left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(-1+x)^(1/2)/(-x^2+1)^(1/2),x, algorithm="giac")

[Out]

1/2*I*(sqrt(2)*log(sqrt(2) + sqrt(x + 1)) - sqrt(2)*log(-sqrt(2) + sqrt(x + 1)))*sgn(x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int \frac {1}{\sqrt {1-x^2}\,\sqrt {x-1}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/((1 - x^2)^(1/2)*(x - 1)^(1/2)),x)

[Out]

int(1/((1 - x^2)^(1/2)*(x - 1)^(1/2)), x)

________________________________________________________________________________________